﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using DTC.Models;
using System.Threading;
using System.Xml;

namespace Common
{
    public class CountManager
    {
        #region 用于综测
        public static int[] zcFailCount = new int[(int)COUNT.MAX];
        public static int[] zcTotalCount = new int[(int)COUNT.MAX];
        #endregion
        public static int[] nyFailCount = new int[(int)COUNT.MAX];
        public static int[] nyTotalCount = new int[(int)COUNT.MAX];
        public static int[] lgFailCount = new int[(int)COUNT.MAX];
        public static int[] lgTotalCount = new int[(int)COUNT.MAX];
        public static int txFailCount = 0;
        public static int txTotalCount = 0;
        public static int TotalFailCount = 0;
        public static int TotalPassCount = 0;
        public static int TotalCount { get { return TotalPassCount + TotalFailCount; } }
        public static void ClearCounts()
        {
            Array.Clear(nyFailCount, 0, (int)COUNT.MAX);
            Array.Clear(nyTotalCount, 0, (int)COUNT.MAX);
            Array.Clear(lgFailCount, 0, (int)COUNT.MAX);
            Array.Clear(lgTotalCount, 0, (int)COUNT.MAX);
            Array.Clear(zcFailCount, 0, (int)COUNT.MAX);
            Array.Clear(zcTotalCount, 0, (int)COUNT.MAX);
            txFailCount = 0;
            txTotalCount = 0;
            TotalFailCount = 0;
            TotalPassCount = 0;
        }
    }
}
